import axios from '@/api/axios.js'

export function login(username,password){
   return axios.post("login/",{username,password})
}

export function getinfo(){
   return axios.get("userinfo/")
}

export const addUser = (data)=>{
  return axios.request({
     url:"userinfo/",
     method:'post',
     data
  })
}